First make sure that you installed the NT Option pack and that you have selected the optional SDK options. This insures that you get the document IIS_as_process.txt and the following reg files.
IISProcess.reg
IISService.reg
Having these registry files saves a ton of time. These reg files assume that IIS is installed in "c:\winnt\system32\inetsrv\inetinfo.exe". If that is not the case, modify the .reg files appropriately before using them.
1.Open the Services dialog box in the Control Panel.
2.Select the IIS Admin service and click the Startup button.
3.Select the Allow Service to Interact with Desktop check box and click OK.
4.Repeat steps 2 and 3 for all processes that run under the IIS Admin process, for example World Wide Web Publishing Service, and FTP Publishing Service.
5.Use the Registry Editor (REGEDIT) to add a subkey named Inetinfo.Exe to
{A9E69610-B80D-11D0-B9B9-00A0C922E750} // IISADMIN Service
The LocalService keyword may be found in additional subkeys of AppID.
10.Add LocalServer32 subkeys to all IISADMIN related subkeys under the CLSID node of the registry. This will include subkeys corresponding to all of the subkeys you removed in the previous step. Set the default value of these new keys to <path>\inetinfo.exe -e w3svc. (<path> is normally "c:\winnt\system32\inetsrv".)
11.Stop the WWW and FTP services from the Services dialog box in the Control Panel.
12. Start Delphi 4 and select Run Parameters. Enter "-e w3svc" into the Parameters Edit box and enter the complete path including file name on the system to inetinfo.exe (for example "c:\winnt\system32\inetsrv\inetinfo.exe").
You must reverse this process to restore the previous settings and allow IIS to be run as a service.